import request from '@/utils/request'

export function fetchParameterList(data) {
  return request({
    url: '/cloud-system/getParameterList',
    method: 'post',
    data
  })
}

export function fetchParameterOne(data) {
  return request({
    url: '/cloud-system/getOneParameterDetail',
    method: 'post',
    data
  })
}

export function createParameter(data) {
  return request({
    url: '/cloud-system/createOneParameter',
    method: 'post',
    data
  })
}

export function updateParameter(data) {
  return request({
    url: '/cloud-system/updateOneParameter',
    method: 'post',
    data
  })
}

export function deleteParameter(data) {
  return request({
    url: '/cloud-system/deleteOneParameter',
    method: 'post',
    data
  })
}
export function batchDeleteParameter(data) {
  return request({
    url: '/cloud-system/batchDeleteParameter',
    method: 'post',
    data
  })
}

export function lockParameter(data) {
  return request({
    url: '/cloud-system/lockOneParameter',
    method: 'post',
    data
  })
}

export function unlockParameter(data) {
  return request({
    url: '/cloud-system/unlockOneParameter',
    method: 'post',
    data
  })
}

export function batchLockParameter(data) {
  return request({
    url: '/cloud-system/batchLockParameter',
    method: 'post',
    data
  })
}

export function batchUnLockParameter(data) {
  return request({
    url: '/cloud-system/batchUnLockParameter',
    method: 'post',
    data
  })
}

export function createParameterSystemList(data) {
  return request({
    url: '/cloud-system/createParameterSystemList',
    method: 'post',
    data
  })
}

export function createParameterOrganizationList(data) {
  return request({
    url: '/cloud-system/createParameterOrganizationList',
    method: 'post',
    data
  })
}

export function createParameterSiteList(data) {
  return request({
    url: '/cloud-system/createParameterSiteList',
    method: 'post',
    data
  })
}

export function createParameterApplicationList(data) {
  return request({
    url: '/cloud-system/createParameterApplicationList',
    method: 'post',
    data
  })
}

export function createParameterUserList(data) {
  return request({
    url: '/cloud-system/createParameterUserList',
    method: 'post',
    data
  })
}

export function deleteObjectByParameterID(data) {
  return request({
    url: '/cloud-system/deleteObjectByParameterID',
    method: 'post',
    data
  })
}
